package com.tuling.enumdemo;

import static junit.framework.Assert.assertTrue;

/**
 * @author: chenhs
 * @date: Created in 16:52 2020/8/18
 **/
public class TestEnum {
    public static void main(String[] args) {
        /*
        System.out.println(PizzaStatus.ORDERED.name());
        System.out.println(PizzaStatus.ORDERED);
        System.out.println(PizzaStatus.ORDERED.name().getClass());
        System.out.println(PizzaStatus.ORDERED.getClass());
        */

        Pizza testPz = new Pizza();
    /*    if (testPz.getStatus().equals(Pizza.PizzaStatus.DELIVERED)) {
            System.out.println(1);
        }*/
/*
        if (testPz.getStatus() == Pizza.PizzaStatus.DELIVERED) {
            System.out.println(2);
        }*/
/*
        testPz.setStatus(Pizza.PizzaStatus.ORDERED);
        if (testPz.getStatus().equals(TestColor.GREEN)) {
            System.out.println(true);
        }
        */

        testPz.setStatus(Pizza.PizzaStatus.READY);
        assertTrue(testPz.isDeliverable());


    }
}
